package com.hong.controller;


import com.hong.bean.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "用户",tags = {"用户"})
@RestController
@RequestMapping("user")
public class UserController {


    @ApiOperation("获取用户")
    @GetMapping("{id}")
    public User getUser(@PathVariable("id") Long id){
        User user = new User();
        user.setId(1L);
        user.setName("赵敏敏");
        user.setSex(1);
        return user;
    }


}
